package cn.pn.project.mapper.schedule;

import cn.pn.project.pojo.schedule.Place;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

@Mapper
public interface PlaceDao {

    /**
     * 根据场地id查询场地信息
     * @param placeId
     * @return
     * @throws SQLException
     */
    public Place getPlaceByPlaceId(@Param("placeId")Integer placeId) throws SQLException;

    /**
     * 多条件查询场地集合（谢耀翔）
     * @param param
     * @return
     * @throws SQLException
     */
    public List<Place> getPlaceListByMap(Map<String,Object> param) throws SQLException;

    /**
     * 多条件查询场地对象（谢耀翔）
     * @param param
     * @return
     * @throws Exception
     */
    public Place getPlaceByMap(Map<String,Object> param)throws Exception;
}
